/**
 * Copyright (c) 2006-2016 Huize Ltd. All Rights Reserved. 
 *  
 * This code is the confidential and proprietary information of   
 * Hzins. You shall not disclose such Confidential Information   
 * and shall use it only in accordance with the terms of the agreements   
 * you entered into with Huize,http://www.huize.com.
 *  
 */
package com.agan.concurrent;

/**
 * @author hz1412988
 * @date 2018年2月9日 上午10:25:38
 * @version
 */
public class Test {

    public static void main(String[] arg) {
	Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {

	    @Override
	    public void run() {
		System.out.println("shutdown hook!!!");
	    }
	}));
	try {
	    Thread.sleep(10000);
	} catch (InterruptedException e) {
	    e.printStackTrace();
	}

	System.exit(0);
    }

}
